function [output] = Out_kde(x, mix)
%OUT_KDE	Use trained machine to get the output
%	[output] = Out_kde(x, mix) 
%	
%	Inputs:
%           x       A 2D (not 3D!) feature matrix, nx by nftrs
%                   It's the input (training or test) data of one channel for the gmm classifier
%           mix     A structure... It's the output of Train_kde()
%		
%
%	Outputs:
%           output  A vector with the output of the trained kde using input data x
%
%	
%	See also Out_gmm, processKDE

%	References:
%           Netlab book
%	

%	Copyright 2012 M. A. F. Pimentel
%	This program is free software: you can redistribute it and/or modify
%	it under the terms of the GNU General Public License as published by
%	the Free Software Foundation, either version 3 of the License, or
%	(at your option) any later version.
%	
%	This program is distributed in the hope that it will be useful,
%	but WITHOUT ANY WARRANTY; without even the implied warranty of
%	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%	GNU General Public License for more details.
%	
%	You should have received a copy of the GNU General Public License
%	along with this program.  If not, see <http://www.gnu.org/licenses/>.

%   SVN revision information
%	@author $Author: M. A. F. Pimentel$
%	@version $Revision: 1.0.0.0$
%	@date $Date: 12-Feb-2012 22:27:22$
%	Contact: marco.pimentel@eng.ox.ac.uk
%	Originally written on: GLNXA64

[~,nftrs] = size(x);
output(:, 1) = gmmprob(mix, x); % nx by 1.

end